package pATT.DataSetsGenerator.dataSetsGenerator.data.implement;


import java.util.Vector;

import pATT.DataSetsGenerator.dataSetsGenerator.attribute.implement.Attribute;
import pATT.DataSetsGenerator.dataSetsGenerator.core.implement.Relation;
import pATT.DataSetsGenerator.dataSetsGenerator.generator.implement.RandomWeightGenerator;



public class RandomWeightData extends Data {
	
	//Por defecto se le deja 1% de peso
	private int weight = -1;
	private String valueWeight = "";
	
	public RandomWeightData(Attribute attribute) {
		super(attribute);
	}
	
	public String generateValue(Relation relation){
		RandomWeightGenerator random = new RandomWeightGenerator(relation);
		return random.randomValue(this);		
	}
	
	public Vector generate(Relation relation){
		RandomWeightGenerator random = new RandomWeightGenerator(relation); 
		return random.generate(this);		
	}
	
	
	public String getValueWeight() {
		return valueWeight;
	}
	
	public void setValueWeight(String valueWeight) {
		this.valueWeight = valueWeight;
	}
	
	public int getWeight() {
		return weight;
	}
	
	public void setWeight(int weight) {
		this.weight = weight;
	}
	
	
}
